const RNFS = require('react-native-fs');

const FileUtil = {
  async isFileExists(path) {
    try {
      const value = await RNFS.exists(path);
      return value;
    } catch (error) {
      return false;
    }
  },
};

export default FileUtil;
